﻿@using Tateeda.ClinicalStudy.Base.Modules.Models.StudyVisit
@model IEnumerable<VisitStepModel>
@{
    ViewBag.Title = "Steps";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<h2>
    Visit Steps</h2>
<p>
    @Html.ActionLink("Create New", "CreateStep")
</p>
<table>
    <tr>
        <th>
            Step Name
        </th>
        <th>
            Description
        </th>
        <th>
            Is Active
        </th>
    </tr>
    @foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Description)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IsActive)
            </td>
        </tr>
    }
</table>
<br />
<br />
<div>
    <i>Steps are for display only. If new step is created in needs to be synch with the
        <b>StudyVisitStep</b> enum.</i>
</div>